/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.portlet.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link nguyenlieu}.
 * </p>
 *
 * @author    Thi
 * @see       nguyenlieu
 * @generated
 */
public class nguyenlieuWrapper implements nguyenlieu, ModelWrapper<nguyenlieu> {
	public nguyenlieuWrapper(nguyenlieu nguyenlieu) {
		_nguyenlieu = nguyenlieu;
	}

	public Class<?> getModelClass() {
		return nguyenlieu.class;
	}

	public String getModelClassName() {
		return nguyenlieu.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("maNguyenLieu", getMaNguyenLieu());
		attributes.put("tenNguyenLieu", getTenNguyenLieu());
		attributes.put("ghiChu", getGhiChu());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		String maNguyenLieu = (String)attributes.get("maNguyenLieu");

		if (maNguyenLieu != null) {
			setMaNguyenLieu(maNguyenLieu);
		}

		String tenNguyenLieu = (String)attributes.get("tenNguyenLieu");

		if (tenNguyenLieu != null) {
			setTenNguyenLieu(tenNguyenLieu);
		}

		String ghiChu = (String)attributes.get("ghiChu");

		if (ghiChu != null) {
			setGhiChu(ghiChu);
		}
	}

	/**
	* Returns the primary key of this nguyenlieu.
	*
	* @return the primary key of this nguyenlieu
	*/
	public java.lang.String getPrimaryKey() {
		return _nguyenlieu.getPrimaryKey();
	}

	/**
	* Sets the primary key of this nguyenlieu.
	*
	* @param primaryKey the primary key of this nguyenlieu
	*/
	public void setPrimaryKey(java.lang.String primaryKey) {
		_nguyenlieu.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the ma nguyen lieu of this nguyenlieu.
	*
	* @return the ma nguyen lieu of this nguyenlieu
	*/
	public java.lang.String getMaNguyenLieu() {
		return _nguyenlieu.getMaNguyenLieu();
	}

	/**
	* Sets the ma nguyen lieu of this nguyenlieu.
	*
	* @param maNguyenLieu the ma nguyen lieu of this nguyenlieu
	*/
	public void setMaNguyenLieu(java.lang.String maNguyenLieu) {
		_nguyenlieu.setMaNguyenLieu(maNguyenLieu);
	}

	/**
	* Returns the ten nguyen lieu of this nguyenlieu.
	*
	* @return the ten nguyen lieu of this nguyenlieu
	*/
	public java.lang.String getTenNguyenLieu() {
		return _nguyenlieu.getTenNguyenLieu();
	}

	/**
	* Sets the ten nguyen lieu of this nguyenlieu.
	*
	* @param tenNguyenLieu the ten nguyen lieu of this nguyenlieu
	*/
	public void setTenNguyenLieu(java.lang.String tenNguyenLieu) {
		_nguyenlieu.setTenNguyenLieu(tenNguyenLieu);
	}

	/**
	* Returns the ghi chu of this nguyenlieu.
	*
	* @return the ghi chu of this nguyenlieu
	*/
	public java.lang.String getGhiChu() {
		return _nguyenlieu.getGhiChu();
	}

	/**
	* Sets the ghi chu of this nguyenlieu.
	*
	* @param ghiChu the ghi chu of this nguyenlieu
	*/
	public void setGhiChu(java.lang.String ghiChu) {
		_nguyenlieu.setGhiChu(ghiChu);
	}

	public boolean isNew() {
		return _nguyenlieu.isNew();
	}

	public void setNew(boolean n) {
		_nguyenlieu.setNew(n);
	}

	public boolean isCachedModel() {
		return _nguyenlieu.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_nguyenlieu.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _nguyenlieu.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _nguyenlieu.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_nguyenlieu.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _nguyenlieu.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_nguyenlieu.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new nguyenlieuWrapper((nguyenlieu)_nguyenlieu.clone());
	}

	public int compareTo(com.portlet.model.nguyenlieu nguyenlieu) {
		return _nguyenlieu.compareTo(nguyenlieu);
	}

	@Override
	public int hashCode() {
		return _nguyenlieu.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.portlet.model.nguyenlieu> toCacheModel() {
		return _nguyenlieu.toCacheModel();
	}

	public com.portlet.model.nguyenlieu toEscapedModel() {
		return new nguyenlieuWrapper(_nguyenlieu.toEscapedModel());
	}

	public com.portlet.model.nguyenlieu toUnescapedModel() {
		return new nguyenlieuWrapper(_nguyenlieu.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _nguyenlieu.toString();
	}

	public java.lang.String toXmlString() {
		return _nguyenlieu.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_nguyenlieu.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof nguyenlieuWrapper)) {
			return false;
		}

		nguyenlieuWrapper nguyenlieuWrapper = (nguyenlieuWrapper)obj;

		if (Validator.equals(_nguyenlieu, nguyenlieuWrapper._nguyenlieu)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public nguyenlieu getWrappednguyenlieu() {
		return _nguyenlieu;
	}

	public nguyenlieu getWrappedModel() {
		return _nguyenlieu;
	}

	public void resetOriginalValues() {
		_nguyenlieu.resetOriginalValues();
	}

	private nguyenlieu _nguyenlieu;
}